package com.sz.wu.model;

import java.util.List;

public class PageBean<T> {
    private long total;//总记录数
    private List<T> rows;//rows用来存数据
    private int pageSize;//每页多少条
    private int pageSizes;//一共多少页
    private int pageNum;//第几页

    public PageBean() {
    }

    public PageBean(long total, List<T> rows, int pageSize, int pageSizes, int pageNum) {
        this.total = total;
        this.rows = rows;
        this.pageSize = pageSize;
        this.pageSizes = pageSizes;
        this.pageNum = pageNum;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageSizes() {
        return pageSizes;
    }

    public void setPageSizes(int pageSizes) {
        this.pageSizes = pageSizes;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "total=" + total +
                ", rows=" + rows +
                ", pageSize=" + pageSize +
                ", pageSizes=" + pageSizes +
                ", pageNum=" + pageNum +
                '}';
    }
}
